﻿using ArcGIS.Core.CIM;
using ArcGIS.Core.Geometry;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace CCTool.Scripts.ToolManagers.Library
{
    public class GlobalData
    {
        // 村规导图DPI
        public static int vgDPI = 300;

        // 当前选择的SpatialReference
        public static SpatialReference sr = null;

        // 当前选择的符号系统
        public static CIMRenderer renderer = null;

        // 三调用地名称列表
        public static List<string> yd_sd = new List<string>() { "红树林地", "森林沼泽", "灌丛沼泽", "沼泽草地", "盐田", "沿海滩涂", "内陆滩涂", "沼泽地", "水田", "水浇地", "旱地", "果园", "茶园", "橡胶园", "其他园地", "可调整果园", "可调整茶园", "可调整橡胶园", "可调整其他园地", "乔木林地", "可调整乔木林地", "竹林地", "可调整竹林地", "灌木林地", "其他林地", "可调整其他林地", "天然牧草地", "人工牧草地", "可调整人工牧草地", "其他草地", "商业服务业设施用地", "物流仓储用地", "工业用地", "采矿用地", "城镇住宅用地", "农村宅基地", "机关团体新闻出版用地", "科教文卫用地", "高教用地", "公用设施用地", "公园与绿地", "广场用地", "特殊用地", "铁路用地", "轨道交通用地", "公路用地", "城镇村道路用地", "交通服务场站用地", "农村道路", "机场用地", "港口码头用地", "管道运输用地", "河流水面", "湖泊水面", "水库水面", "养殖坑塘", "可调整养殖坑塘", "坑塘水面", "沟渠", "干渠", "水工建筑用地", "冰川及永久积雪", "空闲地", "设施农用地", "田坎", "盐碱地", "沙地", "裸土地", "裸岩石砾地", "后备耕地" };


        // 三调编码和全名对照表
        public static Dictionary<string, string> dic_sdAll = new Dictionary<string, string>()
        {
            {"00","湿地"},{"0303","红树林地"},{"0304","森林沼泽"},{"0306","灌丛沼泽"},{"0402","沼泽草地"},{"0603","盐田"},{"1105","沿海滩涂"},{"1106","内陆滩涂"},{"1108","沼泽地"},{"01","耕地"},{"0101","水田"},{"0102","水浇地"},{"0103","旱地"},{"02","种植园用地"},{"0201","果园"},{"0201K","可调整果园"},{"0202","茶园"},{"0202K","可调整茶园"},{"0203","橡胶园"},{"0203K","可调整橡胶园"},{"0204","其他园地"},{"0204K","可调整其他园地"},{"03","林地"},{"0301","乔木林地"},{"0301K","可调整乔木林地"},{"0302","竹林地"},{"0302K","可调整竹林地"},{"0305","灌木林地"},{"0307","其他林地"},{"0307K","可调整其他林地"},{"04","草地"},{"0401","天然牧草地"},{"0403","人工牧草地"},{"0403K","可调整人工牧草地"},{"0404","其他草地"},{"05","商业服务业用地"},{"05H1","商业服务业设施用地"},{"0508","物流仓储用地"},{"06","工矿用地"},{"0601","工业用地"},{"0602","采矿用地"},{"07","住宅用地"},{"0701","城镇住宅用地"},{"0702","农村宅基地"},{"08","公共管理与公共服务用地"},{"08H1","机关团体新闻出版用地"},{"08H2","科教文卫用地"},{"08H2A","高教用地"},{"0809","公用设施用地"},{"0810","公园与绿地"},{"0810A","广场用地"},{"09","特殊用地"},{"10","交通运输用地"},{"1001","铁路用地"},{"1002","轨道交通用地"},{"1003","公路用地"},{"1004","城镇村道路用地"},{"1005","交通服务场站用地"},{"1006","农村道路"},{"1007","机场用地"},{"1008","港口码头用地"},{"1009","管道运输用地"},{"11","水域及水利设施用地"},{"1101","河流水面"},{"1102","湖泊水面"},{"1103","水库水面"},{"1104","坑塘水面"},{"1104A","养殖坑塘"},{"1104K","可调整养殖坑塘"},{"1107","沟渠"},{"1107A","干渠"},{"1109","水工建筑用地"},{"1110","冰川及永久积雪"},{"12","其他土地"},{"1201","空闲地"},{"1202","设施农用地"},{"1203","田坎"},{"1204","盐碱地"},{"1205","沙地"},{"1206","裸土地"},{"1207","裸岩石砾地"},{"1208","后备耕地"},{"201","城市"},{"201A","城市独立工业仓储用地"},{"202","建制镇"},{"202A","建制镇"},{"203","村庄"},{"203A","村庄"},{"204","盐田及采矿用地"},{"205","特殊用地"},{"原来204","采矿用地"},{"原来205","风景名胜用地"}
        };

        // 用地用海表_旧
        public static Dictionary<string, string> dic_ydyh = new Dictionary<string, string>()
        {
            { "01", "耕地"},{ "0101", "水田"},{ "0102", "水浇地"},{ "0103", "旱地"},{ "02", "园地"},{ "0201", "果园"},{ "0202", "茶园"},{ "0203", "橡胶园"},{ "0204", "其他园地"},{ "03", "林地"},{ "0301", "乔木林地"},{ "0302", "竹林地"},{ "0303", "灌木林地"},{ "0304", "其他林地"},{ "04", "草地"},{ "0401", "天然牧草地"},{ "0402", "人工牧草地"},{ "0403", "其他草地"},{ "05", "湿地"},{ "0501", "森林沼泽"},{ "0502", "灌丛沼泽"},{ "0503", "沼泽草地"},{ "0504", "其他沼泽地"},{ "0505", "沿海滩涂"},{ "0506", "内陆滩涂"},{ "0507", "红树林地"},{ "06", "农业设施建设用地"},{ "0601", "乡村道路用地"},{ "060101", "村道用地"},{ "060102", "村庄内部道路用地"},{ "0602", "种植设施建设用地"},{ "0603", "畜禽养殖设施建设用地"},{ "0604", "水产养殖设施建设用地"},{ "07", "居住用地"},{ "0701", "城镇住宅用地"},{ "070101", "一类城镇住宅用地"},{ "070102", "二类城镇住宅用地"},{ "070103", "三类城镇住宅用地"},{ "0702", "城镇社区服务设施用地"},{ "0703", "农村宅基地"},{ "070301", "一类农村宅基地"},{ "070302", "二类农村宅基地"},{ "0704", "农村社区服务设施用地"},{ "08", "公共管理与公共服务用地"},{ "0801", "机关团体用地"},{ "0802", "科研用地"},{ "0803", "文化用地"},{ "080301", "图书与展览用地"},{ "080302", "文化活动用地"},{ "0804", "教育用地"},{ "080401", "高等教育用地"},{ "080402", "中等职业教育用地"},{ "080403", "中小学用地"},{ "080404", "幼儿园用地"},{ "080405", "其他教育用地"},{ "0805", "体育用地"},{ "080501", "体育场馆用地"},{ "080502", "体育训练用地"},{ "0806", "医疗卫生用地"},{ "080601", "医院用地"},{ "080602", "基层医疗卫生设施用地"},{ "080603", "公共卫生用地"},{ "0807", "社会福利用地"},{ "080701", "老年人社会福利用地"},{ "080702", "儿童社会福利用地"},{ "080703", "残疾人社会福利用地"},{ "080704", "其他社会福利用地"},{ "09", "商业服务业用地"},{ "0901", "商业用地"},{ "090101", "零售商业用地"},{ "090102", "批发市场用地"},{ "090103", "餐饮用地"},{ "090104", "旅馆用地"},{ "090105", "公用设施营业网点用地"},{ "0902", "商务金融用地"},{ "0903", "娱乐康体用地"},{ "090301", "娱乐用地"},{ "090302", "康体用地"},{ "0904", "其他商业服务业用地"},{ "10", "工矿用地"},{ "1001", "工业用地"},{ "100101", "一类工业用地"},{ "100102", "二类工业用地"},{ "100103", "三类工业用地"},{ "1002", "采矿用地"},{ "1003", "盐田"},{ "11", "仓储用地"},{ "1101", "物流仓储用地"},{ "110101", "一类物流仓储用地"},{ "110102", "二类物流仓储用地"},{ "110103", "三类物流仓储用地"},{ "1102", "储备库用地"},{ "12", "交通运输用地"},{ "1201", "铁路用地"},{ "1202", "公路用地"},{ "1203", "机场用地"},{ "1204", "港口码头用地"},{ "1205", "管道运输用地"},{ "1206", "城市轨道交通用地"},{ "1207", "城镇道路用地"},{ "1208", "交通场站用地"},{ "120801", "对外交通场站用地"},{ "120802", "公共交通场站用地"},{ "120803", "社会停车场用地"},{ "1209", "其他交通设施用地"},{ "13", "公用设施用地"},{ "1301", "供水用地"},{ "1302", "排水用地"},{ "1303", "供电用地"},{ "1304", "供燃气用地"},{ "1305", "供热用地"},{ "1306", "通信用地"},{ "1307", "邮政用地"},{ "1308", "广播电视设施用地"},{ "1309", "环卫用地"},{ "1310", "消防用地"},{ "1311", "干渠"},{ "1312", "水工设施用地"},{ "1313", "其他公用设施用地"},{ "14", "绿地与开敞空间用地"},{ "1401", "公园绿地"},{ "1402", "防护绿地"},{ "1403", "广场用地"},{ "15", "特殊用地"},{ "1501", "军事设施用地"},{ "1502", "使领馆用地"},{ "1503", "宗教用地"},{ "1504", "文物古迹用地"},{ "1505", "监教场所用地"},{ "1506", "殡葬用地"},{ "1507", "其他特殊用地"},{ "16", "留白用地"},{ "17", "陆地水域"},{ "1701", "河流水面"},{ "1702", "湖泊水面"},{ "1703", "水库水面"},{ "1704", "坑塘水面"},{ "1705", "沟渠"},{ "1706", "冰川及常年积雪"},{ "18", "渔业用海"},{ "1801", "渔业基础设施用海"},{ "1802", "增养殖用海"},{ "1803", "捕捞海域"},{ "19", "工矿通信用海"},{ "1901", "工业用海"},{ "1902", "盐田用海"},{ "1903", "固体矿产用海"},{ "1904", "油气用海"},{ "1905", "可再生能源用海"},{ "1906", "海底电缆管道用海"},{ "20", "交通运输用海"},{ "2001", "港口用海"},{ "2002", "航运用海"},{ "2003", "路桥隧道用海"},{ "21", "游憩用海"},{ "2101", "风景旅游用海"},{ "2102", "体休闲娱乐用海"},{ "22", "特殊用海"},{ "2201", "军事用海"},{ "2202", "其他特殊用海"},{ "23", "其他土地"},{ "2301", "空闲地"},{ "2302", "田坎"},{ "2303", "田间道"},{ "2304", "盐碱地"},{ "2305", "沙地"},{ "2306", "裸土地"},{ "2307", "裸岩石砾地"},{ "24", "其他海域"}
        };
        // 用地用海表_新
        public static Dictionary<string, string> dic_ydyh_new = new Dictionary<string, string>()
        {
            { "01", "耕地"},{ "0101", "水田"},{ "0102", "水浇地"},{ "0103", "旱地"},{ "02", "园地"},{ "0201", "果园"},{ "0202", "茶园"},{ "0203", "橡胶园地"},{ "0204", "油料园地"},{ "0205", "其他园地"},{ "03", "林地"},{ "0301", "乔木林地"},{ "0302", "竹林地"},{ "0303", "灌木林地"},{ "0304", "其他林地"},{ "04", "草地"},{ "0401", "天然牧草地"},{ "0402", "人工牧草地"},{ "0403", "其他草地"},{ "05", "湿地"},{ "0501", "森林沼泽"},{ "0502", "灌丛沼泽"},{ "0503", "沼泽草地"},{ "0504", "其他沼泽地"},{ "0505", "沿海滩涂"},{ "0506", "内陆滩涂"},{ "0507", "红树林地"},{ "06", "农业设施建设用地"},{ "0601", "农村道路"},{ "060101", "村道用地"},{ "060102", "田间道"},{ "0602", "设施农用地"},{ "060201", "种植设施建设用地"},{ "060202", "畜禽养殖设施建设用地"},{ "060203", "水产养殖设施建设用地"},{ "07", "居住用地"},{ "0701", "城镇住宅用地"},{ "070101", "一类城镇住宅用地"},{ "070102", "二类城镇住宅用地"},{ "070103", "三类城镇住宅用地"},{ "0702", "城镇社区服务设施用地"},{ "0703", "农村宅基地"},{ "070301", "一类农村宅基地"},{ "070302", "二类农村宅基地"},{ "0704", "农村社区服务设施用地"},{ "08", "公共管理与公共服务用地"},{ "0801", "机关团体用地"},{ "0802", "科研用地"},{ "0803", "文化用地"},{ "080301", "图书与展览用地"},{ "080302", "文化活动用地"},{ "0804", "教育用地"},{ "080401", "高等教育用地"},{ "080402", "中等职业教育用地"},{ "080403", "中小学用地"},{ "080404", "幼儿园用地"},{ "080405", "其他教育用地"},{ "0805", "体育用地"},{ "080501", "体育场馆用地"},{ "080502", "体育训练用地"},{ "0806", "医疗卫生用地"},{ "080601", "医院用地"},{ "080602", "基层医疗卫生设施用地"},{ "080603", "公共卫生用地"},{ "0807", "社会福利用地"},{ "080701", "老年人社会福利用地"},{ "080702", "儿童社会福利用地"},{ "080703", "残疾人社会福利用地"},{ "080704", "其他社会福利用地"},{ "09", "商业服务业用地"},{ "0901", "商业用地"},{ "090101", "零售商业用地"},{ "090102", "批发市场用地"},{ "090103", "餐饮用地"},{ "090104", "旅馆用地"},{ "090105", "公用设施营业网点用地"},{ "0902", "商务金融用地"},{ "0903", "娱乐用地"},{ "0904", "其他商业服务业用地"},{ "10", "工矿用地"},{ "1001", "工业用地"},{ "100101", "一类工业用地"},{ "100102", "二类工业用地"},{ "100103", "三类工业用地"},{ "1002", "采矿用地"},{ "1003", "盐田"},{ "11", "仓储用地"},{ "1101", "物流仓储用地"},{ "110101", "一类物流仓储用地"},{ "110102", "二类物流仓储用地"},{ "110103", "三类物流仓储用地"},{ "1102", "储备库用地"},{ "12", "交通运输用地"},{ "1201", "铁路用地"},{ "1202", "公路用地"},{ "1203", "机场用地"},{ "1204", "港口码头用地"},{ "1205", "管道运输用地"},{ "1206", "城市轨道交通用地"},{ "1207", "城镇村道路用地"},{ "1208", "交通场站用地"},{ "120801", "对外交通场站用地"},{ "120802", "公共交通场站用地"},{ "120803", "社会停车场用地"},{ "1209", "其他交通设施用地"},{ "13", "公用设施用地"},{ "1301", "供水用地"},{ "1302", "排水用地"},{ "1303", "供电用地"},{ "1304", "供燃气用地"},{ "1305", "供热用地"},{ "1306", "通信用地"},{ "1307", "邮政用地"},{ "1308", "广播电视设施用地"},{ "1309", "环卫用地"},{ "1310", "消防用地"},{ "1311", "水工设施用地"},{ "1312", "其他公用设施用地"},{ "14", "绿地与开敞空间用地"},{ "1401", "公园绿地"},{ "1402", "防护绿地"},{ "1403", "广场用地"},{ "15", "特殊用地"},{ "1501", "军事设施用地"},{ "1502", "使领馆用地"},{ "1503", "宗教用地"},{ "1504", "文物古迹用地"},{ "1505", "监教场所用地"},{ "1506", "殡葬用地"},{ "1507", "其他特殊用地"},{ "16", "留白用地"},{ "17", "陆地水域"},{ "1701", "河流水面"},{ "1702", "湖泊水面"},{ "1703", "水库水面"},{ "1704", "坑塘水面"},{ "1705", "沟渠"},{ "1706", "冰川及常年积雪"},{ "18", "渔业用海"},{ "1801", "渔业基础设施用海"},{ "1802", "增养殖用海"},{ "1803", "捕捞海域"},{ "1804", "农林牧业用岛"},{ "19", "工矿通信用海"},{ "1901", "工业用海"},{ "1902", "盐田用海"},{ "1903", "固体矿产用海"},{ "1904", "油气用海"},{ "1905", "可再生能源用海"},{ "1906", "海底电缆管道用海"},{ "20", "交通运输用海"},{ "2001", "港口用海"},{ "2002", "航运用海"},{ "2003", "路桥隧道用海"},{ "2004", "机场用海"},{ "2005", "其他交通运输用海"},{ "21", "游憩用海"},{ "2101", "风景旅游用海"},{ "2102", "文体休闲娱乐用海"},{ "22", "特殊用海"},{ "2201", "军事用海"},{ "2202", "科研教育用海"},{ "2203", "海洋保护修复及海岸防护工程用海"},{ "2204", "排污倾倒用海"},{ "2205", "水下文物保护用海"},{ "2206", "其他特殊用海"},{ "23", "其他土地"},{ "2301", "空闲地"},{ "2302", "后备耕地"},{ "2303", "田坎"},{ "2304", "盐碱地"},{ "2305", "沙地"},{ "2306", "裸土地"},{ "2307", "裸岩石砾地"},{ "24", "其他海域"},
        };

        // 用地用海表_新_补齐0的也算
        public static Dictionary<string, string> dic_ydyh_new_long = new Dictionary<string, string>()
        {
            {"01", "耕地"}, {"010000", "耕地"}, {"0101", "水田"}, {"010100", "水田"}, {"0102", "水浇地"}, {"010200", "水浇地"}, {"0103", "旱地"}, {"010300", "旱地"}, {"02", "园地"}, {"020000", "园地"}, {"0201", "果园"}, {"020100", "果园"}, {"0202", "茶园"}, {"020200", "茶园"}, {"0203", "橡胶园地"}, {"020300", "橡胶园地"}, {"0204", "油料园地"}, {"020400", "油料园地"}, {"0205", "其他园地"}, {"020500", "其他园地"}, {"03", "林地"}, {"030000", "林地"}, {"0301", "乔木林地"}, {"030100", "乔木林地"}, {"0302", "竹林地"}, {"030200", "竹林地"}, {"0303", "灌木林地"}, {"030300", "灌木林地"}, {"0304", "其他林地"}, {"030400", "其他林地"}, {"04", "草地"}, {"040000", "草地"}, {"0401", "天然牧草地"}, {"040100", "天然牧草地"}, {"0402", "人工牧草地"}, {"040200", "人工牧草地"}, {"0403", "其他草地"}, {"040300", "其他草地"}, {"05", "湿地"}, {"050000", "湿地"}, {"0501", "森林沼泽"}, {"050100", "森林沼泽"}, {"0502", "灌丛沼泽"}, {"050200", "灌丛沼泽"}, {"0503", "沼泽草地"}, {"050300", "沼泽草地"}, {"0504", "其他沼泽地"}, {"050400", "其他沼泽地"}, {"0505", "沿海滩涂"}, {"050500", "沿海滩涂"}, {"0506", "内陆滩涂"}, {"050600", "内陆滩涂"}, {"0507", "红树林地"}, {"050700", "红树林地"}, {"06", "农业设施建设用地"}, {"060000", "农业设施建设用地"}, {"0601", "农村道路"}, {"060100", "农村道路"}, {"060101", "村道用地"}, {"060102", "田间道"}, {"0602", "设施农用地"}, {"060200", "设施农用地"}, {"060201", "种植设施建设用地"}, {"060202", "畜禽养殖设施建设用地"}, {"060203", "水产养殖设施建设用地"}, {"07", "居住用地"}, {"070000", "居住用地"}, {"0701", "城镇住宅用地"}, {"070100", "城镇住宅用地"}, {"070101", "一类城镇住宅用地"}, {"070102", "二类城镇住宅用地"}, {"070103", "三类城镇住宅用地"}, {"0702", "城镇社区服务设施用地"}, {"070200", "城镇社区服务设施用地"}, {"0703", "农村宅基地"}, {"070300", "农村宅基地"}, {"070301", "一类农村宅基地"}, {"070302", "二类农村宅基地"}, {"0704", "农村社区服务设施用地"}, {"070400", "农村社区服务设施用地"}, {"08", "公共管理与公共服务用地"}, {"080000", "公共管理与公共服务用地"}, {"0801", "机关团体用地"}, {"080100", "机关团体用地"}, {"0802", "科研用地"}, {"080200", "科研用地"}, {"0803", "文化用地"}, {"080300", "文化用地"}, {"080301", "图书与展览用地"}, {"080302", "文化活动用地"}, {"0804", "教育用地"}, {"080400", "教育用地"}, {"080401", "高等教育用地"}, {"080402", "中等职业教育用地"}, {"080403", "中小学用地"}, {"080404", "幼儿园用地"}, {"080405", "其他教育用地"}, {"0805", "体育用地"}, {"080500", "体育用地"}, {"080501", "体育场馆用地"}, {"080502", "体育训练用地"}, {"0806", "医疗卫生用地"}, {"080600", "医疗卫生用地"}, {"080601", "医院用地"}, {"080602", "基层医疗卫生设施用地"}, {"080603", "公共卫生用地"}, {"0807", "社会福利用地"}, {"080700", "社会福利用地"}, {"080701", "老年人社会福利用地"}, {"080702", "儿童社会福利用地"}, {"080703", "残疾人社会福利用地"}, {"080704", "其他社会福利用地"}, {"09", "商业服务业用地"}, {"090000", "商业服务业用地"}, {"0901", "商业用地"}, {"090100", "商业用地"}, {"090101", "零售商业用地"}, {"090102", "批发市场用地"}, {"090103", "餐饮用地"}, {"090104", "旅馆用地"}, {"090105", "公用设施营业网点用地"}, {"0902", "商务金融用地"}, {"090200", "商务金融用地"}, {"0903", "娱乐用地"}, {"090300", "娱乐用地"}, {"0904", "其他商业服务业用地"}, {"090400", "其他商业服务业用地"}, {"10", "工矿用地"}, {"1001", "工业用地"}, {"100100", "工业用地"}, {"100101", "一类工业用地"}, {"100102", "二类工业用地"}, {"100103", "三类工业用地"}, {"1002", "采矿用地"}, {"100200", "采矿用地"}, {"1003", "盐田"}, {"100300", "盐田"}, {"11", "仓储用地"}, {"110000", "仓储用地"}, {"1101", "物流仓储用地"}, {"110100", "物流仓储用地"}, {"110101", "一类物流仓储用地"}, {"110102", "二类物流仓储用地"}, {"110103", "三类物流仓储用地"}, {"1102", "储备库用地"}, {"110200", "储备库用地"}, {"12", "交通运输用地"}, {"120000", "交通运输用地"}, {"1201", "铁路用地"}, {"120100", "铁路用地"}, {"1202", "公路用地"}, {"120200", "公路用地"}, {"1203", "机场用地"}, {"120300", "机场用地"}, {"1204", "港口码头用地"}, {"120400", "港口码头用地"}, {"1205", "管道运输用地"}, {"120500", "管道运输用地"}, {"1206", "城市轨道交通用地"}, {"120600", "城市轨道交通用地"}, {"1207", "城镇村道路用地"}, {"120700", "城镇村道路用地"}, {"1208", "交通场站用地"}, {"120800", "交通场站用地"}, {"120801", "对外交通场站用地"}, {"120802", "公共交通场站用地"}, {"120803", "社会停车场用地"}, {"1209", "其他交通设施用地"}, {"120900", "其他交通设施用地"}, {"13", "公用设施用地"}, {"130000", "公用设施用地"}, {"1301", "供水用地"}, {"130100", "供水用地"}, {"1302", "排水用地"}, {"130200", "排水用地"}, {"1303", "供电用地"}, {"130300", "供电用地"}, {"1304", "供燃气用地"}, {"130400", "供燃气用地"}, {"1305", "供热用地"}, {"130500", "供热用地"}, {"1306", "通信用地"}, {"130600", "通信用地"}, {"1307", "邮政用地"}, {"130700", "邮政用地"}, {"1308", "广播电视设施用地"}, {"130800", "广播电视设施用地"}, {"1309", "环卫用地"}, {"130900", "环卫用地"}, {"1310", "消防用地"}, {"1311", "水工设施用地"}, {"131100", "水工设施用地"}, {"1312", "其他公用设施用地"}, {"131200", "其他公用设施用地"}, {"14", "绿地与开敞空间用地"}, {"140000", "绿地与开敞空间用地"}, {"1401", "公园绿地"}, {"140100", "公园绿地"}, {"1402", "防护绿地"}, {"140200", "防护绿地"}, {"1403", "广场用地"}, {"140300", "广场用地"}, {"15", "特殊用地"}, {"150000", "特殊用地"}, {"1501", "军事设施用地"}, {"150100", "军事设施用地"}, {"1502", "使领馆用地"}, {"150200", "使领馆用地"}, {"1503", "宗教用地"}, {"150300", "宗教用地"}, {"1504", "文物古迹用地"}, {"150400", "文物古迹用地"}, {"1505", "监教场所用地"}, {"150500", "监教场所用地"}, {"1506", "殡葬用地"}, {"150600", "殡葬用地"}, {"1507", "其他特殊用地"}, {"150700", "其他特殊用地"}, {"16", "留白用地"}, {"160000", "留白用地"}, {"17", "陆地水域"}, {"170000", "陆地水域"}, {"1701", "河流水面"}, {"170100", "河流水面"}, {"1702", "湖泊水面"}, {"170200", "湖泊水面"}, {"1703", "水库水面"}, {"170300", "水库水面"}, {"1704", "坑塘水面"}, {"170400", "坑塘水面"}, {"1705", "沟渠"}, {"170500", "沟渠"}, {"1706", "冰川及常年积雪"}, {"170600", "冰川及常年积雪"}, {"18", "渔业用海"}, {"180000", "渔业用海"}, {"1801", "渔业基础设施用海"}, {"180100", "渔业基础设施用海"}, {"1802", "增养殖用海"}, {"180200", "增养殖用海"}, {"1803", "捕捞海域"}, {"180300", "捕捞海域"}, {"1804", "农林牧业用岛"}, {"180400", "农林牧业用岛"}, {"19", "工矿通信用海"}, {"190000", "工矿通信用海"}, {"1901", "工业用海"}, {"190100", "工业用海"}, {"1902", "盐田用海"}, {"190200", "盐田用海"}, {"1903", "固体矿产用海"}, {"190300", "固体矿产用海"}, {"1904", "油气用海"}, {"190400", "油气用海"}, {"1905", "可再生能源用海"}, {"190500", "可再生能源用海"}, {"1906", "海底电缆管道用海"}, {"190600", "海底电缆管道用海"}, {"20", "交通运输用海"}, {"2001", "港口用海"}, {"200100", "港口用海"}, {"2002", "航运用海"}, {"200200", "航运用海"}, {"2003", "路桥隧道用海"}, {"200300", "路桥隧道用海"}, {"2004", "机场用海"}, {"200400", "机场用海"}, {"2005", "其他交通运输用海"}, {"200500", "其他交通运输用海"}, {"21", "游憩用海"}, {"210000", "游憩用海"}, {"2101", "风景旅游用海"}, {"210100", "风景旅游用海"}, {"2102", "文体休闲娱乐用海"}, {"210200", "文体休闲娱乐用海"}, {"22", "特殊用海"}, {"220000", "特殊用海"}, {"2201", "军事用海"}, {"220100", "军事用海"}, {"2202", "科研教育用海"}, {"220200", "科研教育用海"}, {"2203", "海洋保护修复及海岸防护工程用海"}, {"220300", "海洋保护修复及海岸防护工程用海"}, {"2204", "排污倾倒用海"}, {"220400", "排污倾倒用海"}, {"2205", "水下文物保护用海"}, {"220500", "水下文物保护用海"}, {"2206", "其他特殊用海"}, {"220600", "其他特殊用海"}, {"23", "其他土地"}, {"230000", "其他土地"}, {"2301", "空闲地"}, {"230100", "空闲地"}, {"2302", "后备耕地"}, {"230200", "后备耕地"}, {"2303", "田坎"}, {"230300", "田坎"}, {"2304", "盐碱地"}, {"230400", "盐碱地"}, {"2305", "沙地"}, {"230500", "沙地"}, {"2306", "裸土地"}, {"230600", "裸土地"}, {"2307", "裸岩石砾地"}, {"230700", "裸岩石砾地"}, {"24", "其他海域"}, {"240000", "其他海域"},
        };


        // Excel表格序号对照表
        public static Dictionary<int, string> excelPairs = new Dictionary<int, string>()
        {
            {1, "A" },{2, "B" },{3, "C" },{4, "D" },{5, "E" },{6, "F" },{7, "G" },{8, "H" },{9, "I" },{10, "J" },{11, "K" },{12, "L" },{13, "M" },
            {14, "N" },{15, "O" },{16, "P" },{17, "Q" },{18, "R" },{19, "S" },{20, "T" },{21, "U" },{22, "V" },{23, "W" },{24, "X" },{25, "Y" },{26, "Z" },
            {27, "AA" },{28, "AB" },{29, "AC" },{30, "AD" },{31, "AE" },{32, "AF" },{33, "AG" },{34, "AH" },{35, "AI" },{36, "AJ" },{37, "AK" },{38, "AL" },{39, "AM" },
            {40, "AN" },{41, "AO" },{42, "AP" },{43, "AQ" },{44, "AR" },{45, "AS" },{46, "AT" },{47, "AU" },{48, "AV" },{49, "AW" },{50, "AX" },{51, "AY" },{52, "AZ" },
            {53, "BA" },{54, "BB" },{55, "BC" },{56, "BD" },{57, "BE" },{58, "BF" },{59, "BG" },{60, "BH" },{61, "BI" },{62, "BJ" },{63, "BK" },{64, "BL" },{65, "BM" },
            {66, "BN" },{67, "BO" },{68, "BP" },{69, "BQ" },{70, "BR" },{71, "BS" },{72, "BT" },{73, "BU" },{74, "BV" },{75, "BW" },{76, "BX" },{77, "BY" },{78, "BZ" },
            {79, "CA" },{80, "CB" },{81, "CC" },{82, "CD" },{83, "CE" },{84, "CF" },{85, "CG" },{86, "CH" },{87, "CI" },{88, "CJ" },{89, "CK" },{90, "CL" },{91, "CM" },
            {92, "CN" },{93, "CO" },{94, "CP" },{95, "CQ" },{96, "CR" },{97, "CS" },{98, "CT" },{99, "CU" },{100, "CV" },{101, "CW" },{102, "CX" },{103, "CY" },{104, "CZ" },
        };

        // 坐标系完整参数
        public static Dictionary<string, string> cdDic = new Dictionary<string, string>()
        {
            {"CGCS2000_3_Degree_GK_Zone_34", "PROJCS[\"CGCS2000_3_Degree_GK_Zone_34\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",34500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",102.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_Zone_35", "PROJCS[\"CGCS2000_3_Degree_GK_Zone_35\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",35500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",105.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_Zone_36", "PROJCS[\"CGCS2000_3_Degree_GK_Zone_36\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",36500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",108.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_Zone_37", "PROJCS[\"CGCS2000_3_Degree_GK_Zone_37\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",37500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",111.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },

            {"CGCS2000_3_Degree_GK_Zone_38", "PROJCS[\"CGCS2000_3_Degree_GK_Zone_38\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",38500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",114.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_Zone_39", "PROJCS[\"CGCS2000_3_Degree_GK_Zone_39\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",39500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",117.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_Zone_40", "PROJCS[\"CGCS2000_3_Degree_GK_Zone_40\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",40500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",120.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_Zone_41", "PROJCS[\"CGCS2000_3_Degree_GK_Zone_41\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",41500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",123.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },

            {"CGCS2000_3_Degree_GK_CM_102E", "PROJCS[\"CGCS2000_3_Degree_GK_CM_102E\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",102.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_CM_105E", "PROJCS[\"CGCS2000_3_Degree_GK_CM_105E\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",105.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_CM_108E", "PROJCS[\"CGCS2000_3_Degree_GK_CM_108E\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",108.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_CM_111E", "PROJCS[\"CGCS2000_3_Degree_GK_CM_111E\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",111.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },

            {"CGCS2000_3_Degree_GK_CM_114E", "PROJCS[\"CGCS2000_3_Degree_GK_CM_114E\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",114.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_CM_117E", "PROJCS[\"CGCS2000_3_Degree_GK_CM_117E\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",117.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_CM_120E", "PROJCS[\"CGCS2000_3_Degree_GK_CM_120E\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",120.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },
            {"CGCS2000_3_Degree_GK_CM_123E", "PROJCS[\"CGCS2000_3_Degree_GK_CM_123E\",GEOGCS[\"GCS_China_Geodetic_Coordinate_System_2000\",DATUM[\"D_China_2000\",SPHEROID[\"CGCS2000\",6378137.0,298.257222101]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Gauss_Kruger\"],PARAMETER[\"False_Easting\",500000.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",123.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]" },

            {"Yellow_Sea_1985", "VERTCS[\"Yellow_Sea_1985\",VDATUM[\"Yellow_Sea_1985\"],PARAMETER[\"Vertical_Shift\",0.0],PARAMETER[\"Direction\",1.0],UNIT[\"Meter\",1.0]]" },
        };


    }
}
